]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
pointerA11yTimeout: Use notify handler instead of onUpdate callback
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 26 Jul 2019 00:28:40 +0000 (02:28 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Tue, 6 Aug 2019 12:52:41 +0000 (14:52 +0200)
We either need to queue a repaint on opacity updates or we don't,
whether the opacity change happens in an animation or not shouldn't
matter.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/654

js/ui/pointerA11yTimeout.js

index 67b58f8afc2d84b3689dc39530bd576a58de0763..0bbe4a46c5563b202ff8822d5b568a149c2a8cbd 100644 (file)
@@ -17,6 +17,8 @@ class PieTimer extends St.DrawingArea {
             can_focus: false,
             reactive: false
         });
+
+        this.connect('notify::opacity', this.queue_repaint.bind(this));
     }
 
     vfunc_repaint() {
@@ -69,7 +71,6 @@ class PieTimer extends St.DrawingArea {
                          { opacity: 255,
                            time: duration / 1000,
                            transition: 'easeOutQuad',
-                           onUpdate: () => this.queue_repaint(),
                            onComplete: () => this.stop()
                           });
     }